import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'my_schedule.dart';

class NotifierSlider2 extends StatefulWidget {
  @override
  _NotifierSlider2State createState() => _NotifierSlider2State();
}

class _NotifierSlider2State extends State<NotifierSlider2> {
  
  var _value = 0.5;

  _onValuechanged(double val) {
    setState(() {
      _value = val;
    });
  }
  @override
  Widget build(BuildContext context) {

    final schedule = Provider.of<MySchedule>(context);

    return Slider(
      value: schedule.stateManagementTime,
      onChanged: (value) => schedule.stateManagementTime = value,
    );
  }
}